package com.chentianyu.learn.demo01.mapper;

import com.chentianyu.learn.demo01.object.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UsersMapper {
    @Select("select * from users")
    List<User> selectUser();
    @Insert("insert into users(`uid`,`name`) values(#{uid},#{name})")
    void insertUser(Integer uid,String name);
}
